package com.mybatis.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.UpdateProvider;

import com.lanhai.model.Park;


public interface ParkDao {
	
	@Select("select * from park")
	List<Map<String, Object>> selectAll();
	
	@Select("select * from temp_park")
	List<Map<String, Object>> selectTempData();	
	
	@UpdateProvider(type=ParkSqlProvider.class, method="updateTempData")
	void updateTempData(Park park);
	
	@InsertProvider(type=ParkSqlProvider.class, method="saveParkingLog")
	public void saveParkingLog(Map<String, String> map);	
	
}
